import Mock from "mockjs"
const Random = Mock.Random
const indexlist = ["A","B","C","D","E","F","G",]
function getdatalist(num){
    return new Array(num).fill("").map((item,index)=>{
        return  {
            index:index+1,
            text:Random.cparagraph(),
            options: new Array(4).fill("").map((item,index2)=>{
                return {
                    index:indexlist[index2],
                    text:Random.cparagraph(),
                }
            })
        }
    })
}

export default [
    {
        url:"/api/xuanzeti/",
        method:"get",
        response:(canshu)=>{
            return {
                code:200,
                data:getdatalist(20),
                success:true
            }
        }
    },
]